import request from '@/utils/request'

// 查询班日历列表
export function listShiftcalendar(query) {
  return request({
    url: '/system/shiftcalendar/list',
    method: 'get',
    params: query
  })
}

// 查询班日历详细
export function getShiftcalendar(id) {
  return request({
    url: '/system/shiftcalendar/' + id,
    method: 'get'
  })
}

// 新增班日历
export function addShiftcalendar(data) {
  return request({
    url: '/system/shiftcalendar',
    method: 'post',
    data: data
  })
}

// 修改班日历
export function updateShiftcalendar(data) {
  return request({
    url: '/system/shiftcalendar',
    method: 'put',
    data: data
  })
}

// 删除班日历
export function delShiftcalendar(id) {
  return request({
    url: '/system/shiftcalendar/' + id,
    method: 'delete'
  })
}
